package game.targets;

public class Stats {
	private int[] stats;
	public static final int SCORE_POS = 0;
	public static final int ARROWS_FIRED_POS = 1;
	public static final int TARGETS_HIT_POS = 2;
	public static final int BAD_HIT_POS = 3;
	public static final int BONUS_HIT_POS = 4;

	public Stats() {
		stats = new int[5];
	}

	public void clear() {
		for (int i = 0; i < stats.length; i++) {
			stats[i] = 0;
		}
	}

	public void increaseScore(int s) {
		stats[SCORE_POS]+=s;
	}

	public void increaseArrowsFired() {
		stats[ARROWS_FIRED_POS]++;
	}

	public void increaseTargetsHit() {
		stats[TARGETS_HIT_POS]++;
	}

	public void increaseBadHit() {
		stats[BAD_HIT_POS]++;
	}

	public void increaseBonusHit() {
		stats[BONUS_HIT_POS]++;
	}

	public int getScore() {
		return stats[SCORE_POS];
	}

	public int getArrowsFired() {
		return stats[ARROWS_FIRED_POS];
	}

	public int getTargetsHit() {
		return stats[TARGETS_HIT_POS];
	}

	public int getBadHit() {
		return stats[BAD_HIT_POS];
	}

	public int getBonusHit() {
		return stats[BONUS_HIT_POS];
	}

}
